* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #3498db;
    --secondary: #2980b9;
    --accent: #1abc9c;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --success: #2ecc71;
    --warning: #e74c3c;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
    background: #e4e9f2;
    color: var(--dark);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

#app {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-out;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to right, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 15px auto 0;
    line-height: 1.6;
    color: var(--dark);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    padding: 12px 25px;
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    transition: var(--transition);
}

.grid-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    height: 320px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: backwards;
    color: var(--dark);
}

/* 移除 hover 效果 */
.grid-item:hover {
    /* transform: translateY(-10px) scale(1.05); */
    /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4); */
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.item-header {
    height: 45%;
    position: relative;
    overflow: hidden;
}

.item-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-item:hover .item-header img {
    /* transform: scale(1.1); */
}

.item-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.item-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.item-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark);
    flex-grow: 1;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px;
    color: var(--dark);
    font-size: 0.9rem;
}

.item-tag {
    background: rgba(46, 204, 113, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* 全屏样式 */
.grid-item.expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    border-radius: 0;
    cursor: default;
    overflow-y: auto;
    transform: none !important;
    height: auto;
    min-height: 100vh;
    box-shadow: none;
    animation: expand 0.5s ease-out;
}

@keyframes expand {
    from {
        transform: scale(0.8);
        opacity: 0;
        border-radius: 15px;
    }

    to {
        transform: scale(1);
        opacity: 1;
        border-radius: 0;
    }
}

.expanded-content {
    display: none;
    padding: 40px;
}

.grid-item.expanded .expanded-content {
    display: block;
}

.grid-item.expanded .initial-content {
    display: none;
}

.close-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    display: none;
}

.close-btn:hover {
    background: rgba(255, 90, 90, 0.8);
    transform: rotate(90deg);
}

.grid-item.expanded~.close-btn {
    display: flex;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    display: none;
}

.grid-item.expanded~.overlay {
    display: block;
}

.expanded-header {
    height: 50vh;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.expanded-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expanded-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.expanded-text {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--dark);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.feature i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .expanded-content {
        padding: 20px;
    }

    .expanded-title {
        font-size: 2rem;
    }

    .expanded-text {
        font-size: 1rem;
    }

    .expanded-header {
        height: 40vh;
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .controls {
        flex-wrap: wrap;
    }
}

footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    color: var(--dark);
    font-size: 0.9rem;
}

.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.5s;
}

.fade-enter,
.fade-leave-to {
    opacity: 0;
}